package cn.scxy.bookcity.mapper;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
public class Collection {

    @Autowired
    private CollectionMapper collectionMapper;

    @Test
    void addNew(){
        cn.scxy.bookcity.pojo.entity.Collection collection = new cn.scxy.bookcity.pojo.entity.Collection();
        collection.setUId(1L);
        collection.setGId(1L);
        int rows = collectionMapper.addNew(collection);
        log.debug("插入了{}条数据",rows);
    }
}
